<!DOCTYPE html>
<html lang="en">
<head>
    <title></title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap.min.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap-responsive.min.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/uniform.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/matrix-style2.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/matrix-media.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/font-awesome/css/font-awesome.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/changyun.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
    <style>
        .table th,.table td{line-height: 20px;text-align: center;border-top: 1px solid #ddd;padding:5px 0 5px 10px;vertical-align: middle;}
    </style>
</head>
<body>
<div id="content">
    <include file="Public/maintop" />
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <div class="widget-box">
                    <div class="cyz-m-tab">
                        <ul class="cyz-m-tab-title">
                            <li class="cyz-m-this" href="javascript:void(0);">日志管理</li>
                        </ul>
                    </div

                    <div class="widget-content" style="padding:5px;border:0px;">
                    </div>

                    <div class="widget-content" style="padding:5px;">
                        <table class="table table-bordered table-striped">
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>操作类型</th>
                                <th>操作人员</th>
                                <th>操作</th>
                                <th>操作时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            <notempty name="list">
                                <volist name="list" id="i">
                                    <tr>
                                        <td>{#$i.id}</td>
                                        <td>{#$i.action_name}</a></td>
                                        <td>{#$i.user_name}({#$i.action_ip})</td>
                                        <td>{#$i.remark}</td>
                                        <td>{#$i.create_time|time_format}</td>
                                    </tr>
                                </volist>
                                <else/>
                                <td colspan="7" class="text-center"> 暂时还没有内容! </td>
                            </notempty>
                            </tbody>
                        </table>
                        <div id="hongxin_page_view">{#$page_show}</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/jquery.ui.custom.js"></script>
<script src="__JS__/bootstrap.min.js"></script>
<script src="__JS__/jquery.uniform.js"></script>
<script src="__JS__/select2.min.js"></script>
<script src="__JS__/matrix.js"></script>
<script src="__JS__/matrix.tables.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script>
    function dodel(jump_url){
        layer.confirm('确定要删除吗', {
            title:'提示',
            icon: 0,
            btn: ['确定','取消'] //按钮
        }, function(e){
            window.location.href = jump_url;
            layer.close(e);
        }, function(e){
            layer.close(e);
        });
    }

    function all_dodel(){
        var idstr = '';
        $('input[name="check_id"]:checked').each(function(){
            idstr += $(this).val()+',';//将选中的值添加到数组chk_value中
        });
        if(idstr == ''){
            layer.alert('请选择要删除的数据',{icon: 0});
            return false;
        }
        layer.confirm('确定要删除吗', {
            title:'提示',
            btn: ['确定','取消'] //按钮
        }, function(e){
            layer.close(e);
            window.location.href = "__CONTROLLER__/del/id/" + idstr;
        }, function(e){
            layer.close(e);
        });
    }
    function changstatus(field,status,aid,e){
        var loadi = null;
        loadi = layer.load(2);
        $.ajax({
            type: "GET",
            url: "__CONTROLLER__/setstatus",
            data:{field:field,status:status,aid:aid},
            dataType: "html",
            success: function(data){
                layer.close(loadi);
                $(e).parent("td").html(data);
            },
            error: function(XMLHttpRequest, textStatus, errorThrown){

            }
        });
    }
</script>
</body>
</html>
